import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import axios from './util/axios'
import './styles.scss'
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import dataMethod from './util/date.js'

import echarts from 'echarts'

import VueCropper from 'vue-cropper'
Vue.use(VueCropper)

Vue.prototype.$echarts = echarts

Vue.use(ElementUI)
Vue.use(Avue, axios)
Vue.use(dataMethod)

Vue.config.productionTip = false

/* router.beforeEach((to, from, next) => {
  document.title = to.name + '-数字档案室应用系统'
  next()
}) */

window.axios = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
